home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
8
/
space102.zip
/
SPACE.DOC
next >
Wrap
Text File
|
1986-12-06
|
6KB
|
199 lines
SPACE.EXE v1.02 by Jeff Porter
SPACE The Disk Space Analyzer
INTRODUCTION
Designed primarily for hard disk users, SPACE.EXE analyzes
file sizes and determines the amount of disk space wasted by the
disk storage allocation techniques used by MS-DOS. SPACE.EXE
produces a report that can be used in making decisions regarding
the most effective ways to use a disk.
BACKGROUND
Because DOS allocates space for files in disk storage units
called clusters, it is possible for a short file to consume much
more disk space than the directory entry indicates. The size of
a disk cluster varies from 512 to 8192 bytes, depending on the
type of disk. On a 20 megabyte hard disk, the cluster size is
8192 bytes, meaning that the storage space for all files is
rounded up to the next 8192 multiple. Thus, a 45 byte file would
take 8192 bytes of disk space, a 8192 byte file would use 8192
bytes of disk space, and a 20,000 byte file would require 24,576
bytes of disk space. On a 10 megabyte hard disk, space is
allocated in 4096 byte increments, causing the 45 byte file to
consume 4096 bytes, the 8192 byte file to consume 8192 bytes, and
the 20,000 byte file to consume 20,480 bytes of disk space.
If there are many small files on a hard disk, a significant
amount of space may be wasted. A program that analyzes the file
sizes and determines how much space is wasted would be
worthwhile. It would help users make decisions as to if or when
action should to be taken to correct the problem of wasted space.
The program SPACE.EXE was written for this purpose.
USING SPACE.EXE
The program SPACE.EXE will process the directories of a hard
disk and give a report indicating:
o The total number of files
o The total amount of disk space used
o The actual amount of space used by the data within the
files -- a sum of the file sizes.
o The amount of space wasted because of the clustering
method.
o The percentage of wasted space, determined by the ratio
of the total disk space used to the total space
wasted.
SPACE.EXE v1.02 by Jeff Porter
To run the program, just use the command:
C>SPACE \*.*
All the files in the root directory and in all subdirectories
will be processed. To analyze the space utilization of the
current directory and all of its subdirectories, use the command:
C>SPACE *.*
To find the space utilization of the current directory only,
use:
C>SPACE *.* /n
To analyze a particular directory and its subdirectories, use:
C>SPACE SUBDIR\*.*
FULL SYNTAX OF THE SPACE.EXE PROGRAM
[d:]SPACE filespec [/N] [/L]
The filespec SHOULD contain wildcards and may contain a path
and/or drive specifier.
filespec is the search filespec to use. All matching files and
directories will be processed. Commonly used filespecs are
"*.*", "\*.*", and "\SUBDIR\*.*". If a filespec is similar to
the form "*.BAT", all batch files in the current directory will
be processed. No subdirectories will be searched unless they
match the filespec form of "*.BAT". Thus, including non-wildcard
characters in the filename position will usually eliminate
subdirectories.
The options are:
/N Do not process subdirectories.
/L List the files and directories as they are processed.
Using this option generally slows the program down a
great deal since many files may be listed.
SPACE.EXE v1.02 by Jeff Porter
SAMPLE RUN
C>SPACE \*.*
The total of 963 files requires 14950.400 Kbytes
The data itself requires 9547.853 Kbytes. 5402.547 Kbytes are
wasted.
The percentage of wasted space is 36.14.
C>
The program produced this space utilization report in less than
25 seconds.
REQUIREMENTS
This program requires DOS 2.0 or later. It is not very useful
for floppies, although it will give accurate results. Memory
requirements are modest; 128K should be enough.
PROGRAM HISTORY
The program SPACE.EXE was written during July and August of 1985
by Jeff Porter. It is written in the C language, and the source
code is available by special request. Jeff Porter can be reached
on the following Austin area bulletin boards (area code 512):
Deep Thought 244-1598
Crystal Caverns 263-5805 (Fido 103/50)
Dead End 255-1282 (Fido 103/91)
or by FidoMail to Freeside, Fido 103/1985.
CONTRIBUTIONS
If you think this program is worthwhile, a contribution of any
amount of money ($5 is suggested) would be greatly appreciated.
Whether you chose to contribute or not, please let me if you use
SPACE.EXE and let me know of any bugs.
Jeff Porter
1505 West Creek Loop
Round Rock, TX 78681